package com.ponchware.classes
{
	import mx.controls.LinkButton;
	import mx.core.UIComponent;
	
	public class Player extends UIComponent
	{
		public var playerNumber:uint;
		public var playerName:String;
		public var tank:Tank;

			
		public function Player(number:uint, name:String, tank:Tank)
		{
			super();
			this.width = 100;
			this.height = 100;
			
			this.playerNumber = number;
			this.playerName = name;
			this.tank = tank;
			trace("Hello I'm", name, "(Player",number,")");
			
			
			
		}
		
		protected override function createChildren():void
		{
			super.createChildren();
			var lblName:LinkButton = new LinkButton();
			lblName.width = 90;
			lblName.height =90;
			lblName.x = 0;
			lblName.y = 0;
			lblName.label = playerName;
			this.addChild(lblName);
		}
	}
}